package com.example.config;

import com.example.spring.*;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class UserConfig {
    @Bean
    public User1 initUser1(){
        return new User1(1L, "alan1");
    }

    @Bean
    public User2 initUser2(){
        return new User2(2L, "alan2");
    }

    @Bean
    public MyPostProcessor initPostProcessor(){
        return new MyPostProcessor();
    }

    @Bean
    public MyFactoryPostProcessor initFactoryPostProcessor(){
        return new MyFactoryPostProcessor();
    }
}
